import Vue from 'vue'
import App from './App.vue'
import "bootstrap/dist/css/bootstrap.css"
import "./assets/fonts/iconfont.css"
import VueRouter from 'vue-router'
import MyGoodsList from './views/MyGoodsList.vue'
import MyGoodsSearch from './views/MyGoodsSearch.vue'
import MyUserInfo from './views/MyUserInfo.vue'

Vue.use(VueRouter)
const routes = [
  {
    path: '/',
    redirect: '/mygoodslist'
  },
  {
    path: '/mygoodslist',
    name: 'MyGoodsList',
    component: MyGoodsList,
  },
  {
    path: '/mygoodssearch',
    name: 'MyGoodsSearch',
    component: MyGoodsSearch,
  },
  {
    path: '/myuserinfo',
    name: 'MyUserInfo',
    component: MyUserInfo,
  }
]
const router = new VueRouter({
  routes
})

Vue.config.productionTip = false

new Vue({
  router,
  render: h => h(App),
}).$mount('#app')
